package e2q.liferay.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;
// default package

import org.hibernate.annotations.GenericGenerator;

import e2q.security.domain.E2qSmRole;
import e2q.security.domain.E2qSmUser;



/**
 * E2qLiUsersRoles entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "Users_Roles")
@IdClass(e2q.liferay.domain.E2qLiUsersRolesId.class)
public class E2qLiUsersRoles  implements java.io.Serializable {


    // Fields    


     private E2qLiUser user;
     private E2qLiRole role;
//     private Long userId;
//     private Long roleId;
//     private String loginId;
//     private String roleName;

    // Constructors

    /** default constructor */
    public E2qLiUsersRoles() {
    }
    @Id
	@GeneratedValue(generator = "pk")
	@Column(name = "userId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public E2qLiUser getUser() {
		return user;
    }

	public void setUser(E2qLiUser user) {
		this.user = user;
	}
	
    @Id
	@GeneratedValue(generator = "pk")
	@Column(name = "roleId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public E2qLiRole getRole() {
		return role;
    }

	public void setRole(E2qLiRole role) {
		this.role = role;
	}
	

    
	
}